package br.unicamp.ic.lis.docseaservice.utils;

import java.util.ResourceBundle;

/**
 * 
 * @author joaosavio
 */
public class PropertiesUtils {

	private static final String APPLICATION = "application";
	private static final String SEMICOLON = ";";

	public static String getString(String key) {
		return ResourceBundle.getBundle(APPLICATION).getString(key);
	}

	public static String[] getArray(String key) {
		return ResourceBundle.getBundle(APPLICATION).getString(key)
				.split(SEMICOLON);
	}

	public static Object getObject(String key) {
		return ResourceBundle.getBundle(APPLICATION).getObject(key);
	}

}
